package com.molichuxing.services.infrastructure.dao;

import com.molichuxing.framework.dao.RootMapper;
import com.molichuxing.services.infrastructure.bean.MsgPushBean;
import org.apache.ibatis.annotations.Param;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 消息推送 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2019-08-14
 */
public interface MsgPushMapper extends RootMapper<MsgPushBean> {

  @Override
  MsgPushBean getById(Integer id);

  int createMsgPushBean (MsgPushBean msgPushBean);

  int getMsgPushPageCount(@Param("content") String content, @Param("sendOpName") String sendOpName, @Param("status") Integer status,@Param("startSendTime") LocalDateTime startSendTime,@Param("endSendTime") LocalDateTime endSendTime);

  List<MsgPushBean> getMsgPushPage(@Param("content") String content, @Param("sendOpName") String sendOpName, @Param("status") Integer status,
                                   @Param("startSendTime") LocalDateTime startSendTime,@Param("endSendTime") LocalDateTime endSendTime,
                                         @Param("pageNum")Integer pageNum, @Param("pageSize") Integer pageSize);

}
